<template>
  <van-submit-bar :price="getTotal" button-text="结算" @submit="onSubmit">
    <van-checkbox :value="isCheckedAll" @click="asynClickSelectAll(!isCheckedAll)">全选</van-checkbox>
		<div class="selectedNum">已选：{{goodsCheckedNum}}件</div>
  </van-submit-bar>
</template>

<script>
import { mapGetters,mapActions } from "vuex";
import { Notify } from "vant";
export default {
	name: "CartsSettle",
	props:['goodsCheckedNum'],
  data() {
    return {
    };
  },
  computed: {
		...mapGetters(['getTotal','isCheckedAll']),

  },
  methods: {
    ...mapActions(["asynUpdateStorage", "asynClickSelectAll"]),
    onSubmit() {
      Notify({ type: "primary", message: "支付接口未开发！" });
		},
  },
  mounted() {
  }
};
</script>
<style scoped>
.van-submit-bar {
  bottom: 49px;
}
.selectedNum{
	position: absolute;
	top: 0;
	left: 37%;
	color: var(--color-text);
	/* transform: translate(-84%); */


}
</style>
